home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / Everything / EverythingDoc.h < prev    next >
Encoding:
Text File  |  1998-10-29  |  699 bĀ   |  36 lines  |  [TEXT/CWIE]

  1. // EverythingDoc.h -- document-level functions
  2.  
  3. #pragma once
  4.  
  5. #include "AMDoc.h"
  6.  
  7. #include "EverythingEngine.h"
  8.  
  9. //----------
  10. struct EverythingDoc {
  11.     AMDoc        super;
  12.  
  13.     WindowPtr        mButtonsPtr;
  14.     WindowPtr        mCheckboxesPtr;
  15.     WindowPtr        mRadiosPtr;
  16.     WindowPtr        mEditTextPtr;
  17.     WindowPtr        mStuffPtr;
  18.     WindowPtr        mBarsPtr;
  19. };
  20. typedef struct EverythingDoc EverythingDoc;
  21.  
  22. //----------
  23. EverythingDoc*        NewEverythingDoc ();
  24.  
  25. //----------
  26. void    EverythingDoc_Init    (EverythingDoc*    self);
  27. void    EverythingDoc_Free    (EverythingDoc*    self);
  28.  
  29. // overrides:
  30. Boolean        DoDocCommand    (AMDoc*        self,
  31.                              long        inCommand);
  32.  
  33. void        OpenWindows        (AMDoc*        self);
  34. Boolean        WouldCloseDoc    (AMDoc*        self,
  35.                              WindowPtr    windPtr);
  36.